/* CSS Reset & Base Styles */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 4rem - 8rem); /* header height - footer height */
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Form Styles */
.video-form {
    max-width: 42rem;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 16rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--secondary-color);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.form-button:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.form-button:active {
    transform: translateY(0);
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text,
.button-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-help {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }
    
    .form-input {
        min-width: auto;
    }
    
    .form-button {
        width: 100%;
    }
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Platforms Section */
.platforms-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 50rem;
    margin: 0 auto;
}

.platform-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.platform-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Results Section */
.results-section {
    padding: 3rem 0 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.results-section .container {
    position: relative;
    z-index: 1;
}

.results-section .section-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-card {
    max-width: 58rem;
    margin: 0 auto;
    position: relative;
}

/* Video Result Card */
.video-result-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.video-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.video-result-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 48px 96px rgba(0, 0, 0, 0.15),
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* Video Header */
.video-header {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
}

.video-cover-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-cover-container:hover {
    box-shadow: 
        0 28px 56px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-cover-container:hover .video-cover {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.video-cover-container:hover .cover-overlay {
    opacity: 1;
}

.play-button {
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-button svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.25rem;
}

.video-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Video Meta */
.video-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-badge {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.publish-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.time-icon {
    width: 1rem;
    height: 1rem;
}

/* Video Description */
.video-description {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.video-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Video Tags */
.video-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.video-tag {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.video-tag:hover {
    transform: translateY(-1px);
}

/* Video Stats */
.video-stats {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Video Actions */
.video-actions {
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

.video-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.action-button.primary {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
    box-shadow: 
        0 8px 16px rgba(79, 70, 229, 0.3),
        0 4px 8px rgba(79, 70, 229, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-button.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #5855eb);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 32px rgba(79, 70, 229, 0.4),
        0 8px 16px rgba(79, 70, 229, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-cover-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .video-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

/* Error and Loading States */
.error-message {
    color: var(--danger-color);
    background: rgba(254, 242, 242, 0.9);
    border: 1px solid rgba(254, 202, 202, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 8px 16px rgba(239, 68, 68, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.loading-message {
    color: var(--info-color);
    background: rgba(239, 246, 255, 0.9);
    border: 1px solid rgba(191, 219, 254, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-disclaimer {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links span {
    opacity: 0.5;
}

/* Simplified Task Progress Styles */

/* Task Progress Styles */
.task-progress {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 2rem;
}

.progress-content {
    max-width: 500px;
    margin: 0 auto;
}

.progress-icon {
    margin-bottom: 1.5rem;
}

.progress-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: block;
}

.progress-text h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.progress-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: var(--primary-color);
    color: white;
}

.step-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* 文案提取相关样式 */
.text-extract-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.extract-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
}

.extract-text-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.extract-text-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.extract-text-btn .btn-icon {
    font-size: 1.1rem;
}

.extract-text-btn .btn-hint {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.extract-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 文案内容显示样式 */
.video-text-content {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.text-content-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-content-title::before {
    content: "📝";
    font-size: 1.2rem;
}

.text-content-body {
    line-height: 1.6;
}

.text-content-body p {
    color: var(--text-primary);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .text-extract-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .extract-text-btn {
        width: 100%;
        justify-content: center;
    }
    
    .video-text-content {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .text-content-title {
        font-size: 1rem;
    }
}

/* Simplified result styles - removed analysis sections */

/* Loading Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .platform-card {
        padding: 1.5rem 0.75rem;
    }
    
    .platform-icon {
        font-size: 2rem;
    }
    
    .platform-name {
        font-size: 0.75rem;
    }

    .content-analysis-section {
        padding: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .analysis-button {
        width: 100%;
        justify-content: center;
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .analysis-section {
        padding: 1.5rem;
    }

    .copywriting-versions {
        gap: 1rem;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
}

/* Video Result Card Styles */
.video-result-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.video-cover-container {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-cover-container:hover .cover-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.play-button svg {
    width: 24px;
    height: 24px;
}

.video-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.video-meta-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.author-signature {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
}

.video-description {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.video-description p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.video-meta-footer {
    margin-top: auto;
}

.publish-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.platform-badge {
    padding: 0.25rem 0.75rem;
    background: var(--info-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Error and Success Messages */
.error-message, .success-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius-md);
    animation: slideDown 0.3s ease;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.error-content, .success-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-close, .success-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.error-close:hover, .success-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Video Card */
@media (max-width: 768px) {
    .video-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .video-cover-container {
        aspect-ratio: 16/9;
        max-height: 200px;
    }
    
    .video-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}
    
    .info-section {
        padding: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 广告位样式 */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    position: relative;
    display: none; /* 暂时隐藏广告位，等有流量后再开启 */
}

.ad-container.ad-top {
    margin-top: 0;
    margin-bottom: 2rem;
}

.ad-container.ad-bottom {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ad-container.ad-player-top {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    color: var(--text-muted);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--primary-color);
}

.ad-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ad-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* 真实广告时隐藏占位符 */
.ad-container.has-ad .ad-placeholder {
    display: none;
}

/* 响应式广告 */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem auto;
    }
    
    .ad-placeholder {
        padding: 1.5rem 1rem;
        min-height: 60px;
    }
}

/* 播放和文案按钮区域 */
.action-buttons-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.play-video-section,
.text-extract-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.play-video-btn,
.extract-text-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.play-video-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.play-video-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(102, 126, 234, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    color: white;
    text-decoration: none;
}

.extract-text-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #374151;
    box-shadow: 
        0 8px 32px rgba(168, 237, 234, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.extract-text-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(168, 237, 234, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.extract-text-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(30%);
}

.play-video-btn:active,
.extract-text-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.play-video-btn .btn-icon,
.extract-text-btn .btn-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.play-video-btn .btn-text,
.extract-text-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.extract-text-btn .btn-hint {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.8;
}

.extract-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .action-buttons-section {
        margin: 1.5rem 0;
        flex-direction: column;
        gap: 1rem;
    }
    
    .play-video-btn,
    .extract-text-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        width: auto;
        max-width: 280px;
    }
    
    .extract-text-btn .btn-hint {
        position: static;
        transform: none;
        margin-top: 0.25rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .play-video-btn,
    .extract-text-btn {
        width: 100%;
        max-width: none;
        padding: 1rem 1.5rem;
    }
    
    .action-buttons-section {
        margin: 1rem 0;
        gap: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .form-button,
    .download-button,
    .ad-container,
    .action-buttons-section {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: var(--text-primary);
        padding: 1rem 0;
    }
    
    body {
        background: white;
    }
}

/* 悬浮反馈组件样式 */
.floating-feedback {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    font-family: var(--font-family);
}

.feedback-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.feedback-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.feedback-toggle:hover::before {
    left: 100%;
}

.feedback-toggle:active {
    transform: translateY(-1px);
}

.feedback-icon {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.floating-feedback.active .feedback-icon {
    animation: none;
}

.feedback-text {
    font-weight: 500;
}

.feedback-panel {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 280px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.feedback-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.feedback-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.feedback-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-body {
    padding: 1.25rem;
}

.feedback-qr {
    text-align: center;
    margin-bottom: 1rem;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    margin: 0 auto;
}

.qr-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.qr-placeholder p {
    font-size: 0.7rem;
    line-height: 1.3;
    margin: 0;
}

.qr-description {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feedback-benefits {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.feedback-benefits p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-feedback {
        right: 15px;
        bottom: 15px;
    }
    
    .feedback-toggle {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .feedback-panel {
        width: 260px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .floating-feedback {
        right: 10px;
        bottom: 10px;
    }
    
    .feedback-toggle {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .feedback-panel {
        width: 250px;
        right: -20px;
    }
}

/* 视频元信息底部样式调整 */
.video-meta-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}